
<div class="layui-form-item">
    <div class="layui-inline">
    <label class="layui-form-label"><i class="redstar">*</i>所属学期</label>
    <div class="layui-input-inline">
        <select name="term_id" lay-verify="required" lay-filter="test">
        @php
            $termlist = app('termService')->getAll();
        @endphp
        @forelse($termlist as $term)
            <option value="{{$term['id']}}">{{$term['year'].$term['termname']}}</option>
        @empty
            <option value="">请选择学期</option>
        @endforelse
        </select>                    
    </div>
</div>